package map.mapadjoin.base;

import java.math.BigDecimal;

/**
 * @Auther Jun jie Yi
 * @Date 17:44 2021/8/16
 */
public class Demo {
    public static void main(String[] args) {

        Graph<String> graph = new Graph<>();

        graph.addVertex("A");
        graph.addVertex("B");
        graph.addVertex("C");
        graph.addVertex("D");
        graph.addVertex("E");

        graph.addEdge(0, 1, new BigDecimal("12"));
        graph.addEdge(0, 2, new BigDecimal("13"));

        graph.showGraph();
    }
}
